package net.minecraft.src;

import java.util.Random;

public class BlockGrassTrap extends Block
{

    protected BlockGrassTrap(int i, int j)
    {
        super(i, j, Material.grass);
		setBlockBounds(0.0F, 0.875F, 0.0F, 1.0F, 1.0F, 1.0F);
        setTickOnLoad(true);
    }
	
	public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
    {
		return null;
    }
	
	public void onEntityWalking(World world, int i, int j, int k, Entity entity)
	{
		if(entity instanceof EntityPlayer)
		{
			world.setBlockWithNotify(i, j, k, 0);
			ModLoader.getMinecraftInstance().thePlayer.addStat(mod_pph.spiderburrow, 1);
		}
	}
	
	public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
    {
        if(entity instanceof EntityPlayer)
		{
			world.setBlockWithNotify(i, j, k, 0);
			ModLoader.getMinecraftInstance().thePlayer.addStat(mod_pph.spiderburrow, 1);
		}
    }

    public int idDropped(int i, Random random)
    {
		return -1;
	}
	
	public boolean renderAsNormalBlock()
    {
        return false;
    }
	
	public boolean isOpaqueCube()
    {
        return false;
    }
}
